/**
 * Created by lintao_alex on 2018/8/29
 */

namespace game {
    import UI_bar = bar.UI_bar;

    export class BarWindow extends ViewWindow<UI_bar>{
        protected get ViewClass(): mengdao.IClass<UI_bar> {
            return UI_bar;
        }
        get resPackage(): string {
            return "bar";
        }

        protected afterCreate(): void {
        }


        protected beforeOpen(): void {
            let barM = this.get(BarModel)
            this.view.txtInfo.text = barM.cnt+''
        }


        requestData(onBack: mengdao.IRequestBack): void {
            let barM = this.get(BarModel);
            barM.requestData(onBack);
        }


    }
}